linux_aria

My file bash, and configurate for linux


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

web server

apache2 HTTPS (ubuntu)

nginx (red hat)

nginx custom path

nginx with ssl

centos

tls host with cerbot

sudo apt-get install python3-certbot-nginx -y
sudo certbot --nginx -d <yourdomain.com> -d <www.yourdomain.com>

selinux

man semanage-fcontext

semanage fcontext -a -t httpd_sys_content_t "/path(/.*)?"
restorecon /path
ls -ldZ /path

semanage fcontext -a -t httpd_sys_content_t "/linktree(/.*)?"/
restorecon /linktree/
ls -ldZ /path